feat: Add Bitbucket integration#3039
Conversation
|
@ishaksebsib I made some changes to support the workspace access tokens. Can you sign-off the commits you have on this branch? Check this document. |
| return fmt.Sprintf("refs/tags/%s", refName) | ||
| default: | ||
| return fmt.Sprintf("refs/heads/%s", refName) | ||
| } |
There was a problem hiding this comment.
extractRef only checks first change, missing subsequent refs
High Severity
extractRef only examines changes[0] in the Bitbucket push payload, but a single push event can contain multiple ref changes (e.g., when multiple branches are updated simultaneously). If a matching ref appears in a later change entry and the first change doesn't match the configured ref filter, the event is silently dropped. The function and caller in HandleWebhook need to iterate over all changes and emit the event if any change matches.
Additional Locations (1)
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
Bugbot Autofix is OFF. To automatically fix reported issues with Cloud Agents, enable Autofix in the Cursor dashboard.
ec8c23c to
68f347e
Compare
Signed-off-by: ishaksebsib <ishaksebsib@gmail.com>
Signed-off-by: ishaksebsib <ishaksebsib@gmail.com>
Signed-off-by: ishaksebsib <ishaksebsib@gmail.com>
Signed-off-by: ishaksebsib <ishaksebsib@gmail.com>
Signed-off-by: ishaksebsib <ishaksebsib@gmail.com>
Signed-off-by: Lucas Pinheiro <lucas@superplane.com>
…tokens Signed-off-by: ishaksebsib <ishaksebsib@gmail.com>
68f347e to
67bc315
Compare
|
@lucaspin Thanks again for your help! I’ve signed off on the commits and added instructions for adding the tokens. |
Signed-off-by: Lucas Pinheiro <lucas@superplane.com>
|
@ishaksebsib thanks. Everything looks good now. Will merge once CI passes |
|
Thanks again @lucaspin, I will send another PR for the other triggers! |
This PR adds the Bitbucket integration, with an initial onPush trigger. Authentication supports API tokens and workspace access tokens. Webhooks are provisioned automatically through BitBucket APIs. The trigger supports ref filtering via predicates and emits Bitbucket push payloads to workflows. --------- Signed-off-by: ishaksebsib <ishaksebsib@gmail.com> Signed-off-by: Lucas Pinheiro <lucas@superplane.com> Co-authored-by: Lucas Pinheiro <lucas@superplane.com>
This PR adds the Bitbucket integration, with an initial onPush trigger. Authentication supports API tokens and workspace access tokens. Webhooks are provisioned automatically through BitBucket APIs. The trigger supports ref filtering via predicates and emits Bitbucket push payloads to workflows. --------- Signed-off-by: ishaksebsib <ishaksebsib@gmail.com> Signed-off-by: Lucas Pinheiro <lucas@superplane.com> Co-authored-by: Lucas Pinheiro <lucas@superplane.com> Signed-off-by: alabro-bm <atanas.labroski@brightmarbles.io>


Implements #1956.
This PR adds the Bitbucket integration with an On Push trigger.
It supports workspace authentication via email + API token, lists repositories, and provisions webhooks for push events.
The trigger supports ref filtering via predicates and emits Bitbucket push payloads to workflows.
Demo:
2026-02-11.17-17-28.mp4